/*
 * @Author: thinker_cy
 * @Date: 2025-11-03 17:38:50
 * @FilePath: \weimai-admin\src\api\teamsinfo\index.js
 * @Description: 
 */
import request from '@/config/axios'

// 团队介绍 API
export const TeamsInfoApi = {
  // 查询团队介绍分页
  getTeamsInfoPage: async (params) => {
    return await request.get(`/teams-info/page`, { params })
  },

  // 查询团队介绍详情
  getTeamsInfo: async (id) => {
    return await request.get(`/teams-info/get?id=` + id)
  },

  // 新增团队介绍
  createTeamsInfo: async (data) => {
    return await request.post(`/teams-info/create`, data)
  },

  // 修改团队介绍
  updateTeamsInfo: async (data) => {
    return await request.post(`/teams-info/update`, data)
  },

  // 删除团队介绍
  deleteTeamsInfo: async (id) => {
    return await request.delete(`/teams-info/delete?id=` + id)
  },

  // 导出团队介绍 Excel
  exportTeamsInfo: async (params) => {
    return await request.get(`/teams-info/export-excel`, { params })
  },
}
